package cn.ligoo.part.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ligoo.part.dao.SysModActionDao;
import cn.ligoo.part.domain.SysModAction;
import cn.ligoo.part.service.SysModActionService;

/**
 * @author Jin,QingHua
 * @version 2012-07-17 16:46:31
 */
@Service
public class SysModActionServiceImpl implements SysModActionService {

	@Resource
	private SysModActionDao sysModActionDao;

	@Override
	public Integer createSysModAction(SysModAction t) {
		this.sysModActionDao.insertEntity(t);
		return t.getId();
	}

	@Override
	public int modifySysModAction(SysModAction t) {
		return this.sysModActionDao.updateEntity(t);
	}

	@Override
	public int removeSysModAction(SysModAction t) {
		return this.sysModActionDao.deleteEntity(t);
	}

	@Override
	public SysModAction getSysModAction(SysModAction t) {
		return this.sysModActionDao.selectEntity(t);
	}

	@Override
	public Integer getSysModActionCount(SysModAction t) {
		return this.sysModActionDao.selectEntityCount(t);
	}

	@Override
	public List<SysModAction> getSysModActionList(SysModAction t) {
		return this.sysModActionDao.selectEntityList(t);
	}

}
